package com.numberma.loggingservice.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Log  implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long logId;
    private Long userId;      // 操作用户ID
    private String action;    // 操作类型，如："REGISTER", "UPDATE_USER"
    private String ip;        // 操作IP地址
    private String detail;    // 操作详情（JSON格式）
    private LocalDateTime operationTime; // 操作时间

}